header{
    padding: 0 10px;
    background: #666;
}

.header {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 5;

}

.header .w1400 {
    padding: 21px 0;
}

.header .w1400 .logo {
    display: block;
    height: 45px;
    -webkit-filter: brightness(100%);
    filter: brightness(100%);
}

.header .w1400 .logo img {
    height: 100%;
    width: auto;
}

.header .w1400 .right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header .w1400 .right ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.header .w1400 .right ul li {
    margin-left: 58px;
}

.header .w1400 .right ul li:first-child {
    margin-left: 0;
}

.header .w1400 .right ul li a {
    display: block;
    font-size: 16px;
    color: #fff;
    line-height: 45px;
    padding: 0;
}

.header .w1400 .right span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: number;
    color: #fff;
    font-size: 20px;
}

.header .w1400 .right span a {
    color: #fff;
    font-size: 20px;
    margin-left: 5px;
}

.header .w1400 .right .btn {
    display: block;
    width: 120px;
    line-height: 42px;
    text-align: center;
    color: #0042ff;
    background: #fff;
    border-radius: 21px;
    font-size: 16px;
    font-weight: bold;
    margin-left: 30px;
    padding: 0;
}

.header .w1400 .right .menu {
    display: none;
}

.header.active {
    background: #fff;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.header.active .w1400 .right ul li a {
    color: #333;
}

.header.active .w1400 .right span {
    color: #333;
}

.header.active .w1400 .right span a {
    color: #333;
}

.header.active .w1400 .right .btn {
    color: #fff;
    background: #0042ff;
}

.blackBg {
    display: none;
}


@media (max-width: 1500px) {
    .w1400 {
        width: 90%;
    }
    .header .w1400 {
        width: 90%;
        margin: 0 auto;
    }
    .header .w1400 .right ul li {
        margin-left: 25px;
    }
}
@media (max-width: 1340px) {
    .header .w1400 .right .nav {
        position: initial;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        margin-right: 20px;
    }
}
@media (max-width: 1200px) {
    .header .w1400 .right span {
        display: none;
    }
}
@media (max-width: 996px) {
    .header .w1400 .right ul {
        display: none;
    }

    .header .w1400 .right .btn {
        display: none;
    }

    .header .w1400 .right .menu {
        display: block;
        background: url(../images/menu.png) no-repeat center/cover;
        width: 45px;
        height: 45px;
        -webkit-filter: grayscale(100%) brightness(1000%);
        filter: grayscale(100%) brightness(1000%);
        cursor: pointer;
    }

    .header.active .w1400 .right .menu {
        -webkit-filter: none;
        filter: none;
    }

    .blackBg {
        width: 100%;
        height: 100vh;
        position: fixed;
        background: rgba(0, 0, 0, 0.4);
        top: 0;
        z-index: 10;
        left: 0;
    }
    .blackBg ul {
        width: 80%;
        height: 100vh;
        background: #fff;
        position: absolute;
        top: 0;
        right: -80%;
    }
    .blackBg ul li {
        border-top: 1px solid #eee;
    }
    .blackBg ul li a {
        line-height: 3;
        font-size: 4vw;
        text-align: center;
        display: block;
        color: #333;
    }
    .blackBg ul li:first-child {
        border-top: 0;
    }
}
@media (max-width: 750px) {
    .header .w1400 .logo {
        height: 35px;
    }
    .header .w1400 .right .menu {
        height: 35px;
        width: 35px;
    }
}
